import ZbRequest from '../index'

export const addTreasure = (data) => ZbRequest.post('/treasure', data)
export const deleteTreasure = (id) => ZbRequest.delete('/treasure/' + id, {})
export const updateTreasure = (id, data) => ZbRequest.put('/treasure/' + id, data)
export const getTreasure = (data) => ZbRequest.get('/treasure', data)
export const getTreasureDetail = (id) => ZbRequest.get('/treasure/' + id, {})